<template>
  <el-dialog
    :title="title"
    :visible.sync="visible"
    :close-on-click-modal="false"
    class="dialog-wrapper"
    @close="close"
  >
    <el-form>
      <y-card title="Card title" class-name="nobody">
        <div class="title-font">Part1: The basic information</div>
        <el-row type="flex">
          <el-col :span="8">
            <el-form-item label="Lable1">information1</el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="Lable2">information2</el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="Lable3">information3</el-form-item>
          </el-col>
        </el-row>
      </y-card>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button size="small" @click="close">取 消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    dialogVisible: {
      type: Boolean,
      required: true
    },
    title: {
      type: String,
      default: ''
    },
    id: {
      type: String,
      default: ''
    }
  },
  computed: {
    visible: {
      get() {
        return this.dialogVisible
      },
      set(val) {
        this.$emit('update:dialogVisible', val)
      }
    }
  },
  methods: {
    close() {
      this.visible = false
    }
  }
}
</script>

<style>

</style>
